<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html" 
xmlns:f="http://java.sun.com/jsf/core" 
xmlns:c="http://java.sun.com/jsp/jstl/core" 
xmlns:ace="http://www.icefaces.org/icefaces/components"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:icecore="http://www.icefaces.org/icefaces/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
template="/WEB-INF/templates/templatePrincipal.xhtml">

<ui:define name="corpo-da-pagina">
<ui:include src="menu.xhtml"></ui:include>
<h:form id="formPrincipal">

	<br />
	
	<ace:tabSet>
		<ace:tabPane label="Midias">
	
			<h:panelGrid columns="2">
				<h:outputLabel value="Tipo de Midia:" />
				<h:selectOneMenu value="#{editMidiaMB.tipoMidia}" >
					<f:selectItem itemValue="#" itemLabel="..:: Tipo de Midia ::.." />
					<f:selectItems value="#{editMidiaMB.tipoMidias}" /> 
					<f:ajax event="change" render="valorPadrao" listener="#{editMidiaMB.carrega}" />
				</h:selectOneMenu>  
		
				<h:outputLabel value="Valor Padrao:" />
				<h:inputText value="#{editMidiaMB.midia.valorPadrao}" id="valorPadrao"/>
	 		</h:panelGrid>
			
			<br />
	 		
	 		<h:commandButton value="Salvar" action="#{editMidiaMB.salvarEditar}" />
		</ace:tabPane>
    </ace:tabSet>

	<br />

</h:form>
</ui:define>
</ui:composition>